home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / fish / 001-100 / 001-025 / 014 / amiga3d / make < prev    next >
Text File  |  1995-03-17  |  798b  |  38 lines

  1. .Key file
  2. ;           Compile a C program                       Version 1.02
  3. failat 65535
  4. if not exists df1:examples/<file$t1>.c
  5. echo "File examples/<file$t1>.c does not exist.  Try again."
  6. skip END
  7. endif
  8.  
  9. copy df1:examples/<file$t1>.c ram:<file$t1>.c
  10.  
  11. if not exists ram:<file$t1>.c
  12. echo "File <file$t1>.c not copied to ram: Error..."
  13. skip END
  14. endif
  15.  
  16. echo "-- compiling <file$t1>..."
  17.  
  18. df1:c/lc1 -oram: -idf1:include/ -idf1:include/lattice/ ram:<file$t1>
  19. df1:c/lc2 -oram: ram:<file$t1>
  20.  
  21. delete ram:<file$t1>.c
  22.  
  23. if not exists ram:<file$t1>.o
  24. echo "File ram:<file$t1>.o does not exist. Error..."
  25. skip END
  26. endif
  27.  
  28. copy ram:<file$t1>.o df1:examples/<file$t1>.o
  29.  
  30. if not exists df1:examples/<file$t1>.o
  31. echo "File ram:<file$t1>.o not copied to df1:examples/
  32. skip END
  33. endif
  34.  
  35. delete ram:<file$t1>.o
  36.  
  37. LAB END
  38.